﻿using AutoMapper;
using SmartConference.Api.DTO;
using SmartConference.Domain;

namespace SmartConference.Api.Filter
{
    public class AutoMapperFiles:Profile
    {
        public AutoMapperFiles()
        {
            CreateMap<UserInfo, UserUpdateInfoDTO>().ReverseMap();
            CreateMap<UserInfo, UserLoginDTO>().ReverseMap();
            CreateMap<MeetingReservation, MeetAppointDTO>().ReverseMap();
            CreateMap< DepartmentInfo, TreeDept>().ReverseMap();
            CreateMap<MeetingRoom,AddMeetingRoomDTO>().ReverseMap();
            CreateMap<MeetingReservation,AddMeetingReservationDTO>().ReverseMap();
            CreateMap<RoleInfo,AddRoleDTO>().ReverseMap();
            CreateMap<DepartmentInfo, AddDepartmentDTO>().ReverseMap();
            CreateMap<PermissionInfo, GetPermissionDTO>().ReverseMap();
        }
    }
}
